package com.czxy.tanhua.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ErrorResult {

    private String errCode = "999999";
    private String errMessage;

    public static ErrorResult error(){
        return ErrorResult.builder().errCode("999999").errMessage("系统异常稍后在试").build();
    }

    public static ErrorResult fail(){
        return ErrorResult.builder().errCode("000001").errMessage("失败").build();
    }

    public static ErrorResult codeempty(){
        return ErrorResult.builder().errCode("000002").errMessage("验证码为空").build();}
    public static ErrorResult codeError(){
        return ErrorResult.builder().errCode("000003").errMessage("验证码错误").build();}
}
